<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/displaytag-11.tld" prefix="display" %>

<html>
<head>
<link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css">
<script src="<%=request.getContextPath()%>/js/displaytag.js" type="text/javascript"></script>
<script>
function enviar(){
 document.forms[0].target = "blank";

  
   
    document.forms[0].submit();
}
</script>
</head>

<body>
<logic:messagesPresent message="true"> 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgInfor" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
  <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgError" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgWarn" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgOk" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
</logic:messagesPresent> 
<br>
<br>
      <DIV align="center" class="titulosenblanco">
        <STRONG>Busqueda de Usuarios </STRONG>
      </DIV>
<br>  
<br>
     		
	<logic:present name="userList"> 
      <display:table name="sessionScope.userList" requestURI='<%= request.getContextPath() + "/admin/manageUsers.do" %>' class="bordesTable"  id="users" export="true"  cellpadding="3" cellspacing="1"  style="width:100%">
			
			<display:column headerClass="headerTable" title="Nombre" class="Numero" media="html" >
        <html:link paramId="code" paramName="users" paramProperty="code" page="/admin/modifyUser.do">
          <bean:write name="users" property="name" /> 
        </html:link>       
			</display:column>	
      <display:column headerClass="headerTable" title="Descripcion" class="Numero" >
			  <bean:write name="users" property="description" /> 	
			</display:column>	
			<display:column headerClass="headerTable" title="Grupo de Usuarios" class="Numero" >
			   <bean:write name="users" property="userGroupName" /> 	
			</display:column>			
      <display:column headerClass="headerTable" title="Borrar" class="Numero" media="html">
        <html:link onclick="return confirm('Esta seguro que desea eliminar el usuario?')" paramId="code" paramName="users" paramProperty="code" page="/admin/deleteUser.do">
          <div align="center"><img src="<%= request.getContextPath() + "/images/Delete.gif" %>" width="16" height="16" border="0"></div>
        </html:link>       
			</display:column>	
		</display:table>
		</logic:present>
		
</body>
</html>